package group.program.Controller;

import group.program.Service.TextAnalysisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
@RestController
public class TextAnalysisController {
    @Autowired
    private TextAnalysisService textAnalysisService;
    //调用大语言模型示例
    @PostMapping("/textAnalysis")
    public String textAnalysis(HttpServletResponse response, @RequestBody String question){
        return textAnalysisService.textAnalysis(response,question);
    }
}
